import java.util.ArrayList;
import java.util.List;

public class AutomaticTesting {
    public static void main(String[] args) throws Exception {
        /**
         * 测试drom101中的GetInforDrom与find3方法
         */
        List<drom101> a = new ArrayList<>();
        a=drom101.GetInforDrom();
        System.out.println(a);

        String name="q";
        drom101 dorm1=new drom101();
        dorm1=drom101.find3(name);
        System.out.println(dorm1);

        /**
         *测试JDBC1中getSname方法
         */
        String b=JDBC1.getSname("1");
        System.out.println(b);

        /**
         * 测试mix1中GetInforMix方法
         */
        List<mix1> c=new ArrayList<>();
        c=mix1.GetInforMix();
        System.out.println(c);

        //测试jdbc1的save1方法
        String save1test1="AutoTest1";
        String save1test2="AutoTest2";
        String save1test3="AutoTest3";
        JDBC1.save1(save1test1,save1test2,save1test3);

        //测试jdbc1的save2方法
        String save2test1="AutoTest1";
        int save2test2=2;
        String save2test3="AutoTest3";
        String save2test4="AutoTest4";
        JDBC1.save2(save2test1,save2test2,save2test3,save2test4);

        //测试jdbc的save3方法
        String save3test1="AutoTest1";
        String save3test2="AutoTest2";
        String save3test3="AutoTest3";
        String save3test4="AutoTest4";
        JDBC1.save3(save3test1,save3test2,save3test3,save3test4);

        //测试jdbc1的save4方法
        String save4test1="AutoTest1";
        String save4test2="AutoTest2";
        String save4test3="AutoTest3";
        JDBC1.save4(save4test1,save4test2,save4test3);
    }
}
